package org.elephantt.webby;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

public interface RequestResponseFactory<RequestType extends Request, ResponseType extends Response> {
  RequestType createRequest(HttpServletRequest request, Map<String, String> urlParamMap);
  ResponseType createResponse(HttpServletResponse response);
}